import store from '@/store'

/**
 * 获取所有模块
 */
export function enableModules() {
  return store.getters.enableModules
}

/**
 * 是否开启积分模块
 */
export function enablePointModule() {
  return store.getters.enableModules.enablePoints == 1
}

/**
 * 是否开启资料模块
 */
export function enableDatumModule() {
  return store.getters.enableModules.enableDatumModule == 1
}

/**
 * 是否开启社群模块
 */
export function enableSocialModule() {
  return store.getters.enableModules.enableSocialGroup == 1
}

/**
 * 是否开启测评模块
 */
export function enableExamModule() {
  return store.getters.enableModules.enableExamModule == 1
}

/**
 * 是否开启微信推送
 */
export function enableWxPush() {
  return store.getters.enableModules.enableCourseWxPush == 1
}

/**
 * 三级代理
 */
export function getAgentLevels() {
  return store.getters.enableModules.agentLevels
}

/**
 * 模板ID
 */
export function getThemeId() {
  return store.getters.enableModules.themeId
}

/**
 * 是否开启VIP
 */
export function enableSvip() {
  return store.getters.enableModules.enableSvip
}

export function videoPlatformType() {
  return store.getters.enableModules.videoPlatformType
}

export function dashboard() {
  return store.getters.permission.dashboard.length
}
export function shopManage_basicDatum() {
  return store.getters.permission.shopManage_basicDatum.length
}
export function shopManage_systemManage() {
  return store.getters.permission.shopManage_systemManage.length
}
export function shopManage_courseCategory() {
  return store.getters.permission.shopManage_courseCategory.length
}
export function shopManage_lecturers() {
  return store.getters.permission.shopManage_lecturers.length
}
export function knowledge_courses_videos() {
  return store.getters.permission.knowledge_courses_videos.length
}
export function knowledge_courses_audios() {
  return store.getters.permission.knowledge_courses_audios.length
}
export function knowledge_courses_articles() {
  return store.getters.permission.knowledge_courses_articles.length
}
export function knowledge_courses_previews() {
  return store.getters.permission.knowledge_courses_previews.length
}
export function knowledge_columns() {
  return store.getters.permission.knowledge_columns.length
}
export function knowledge_datums() {
  return store.getters.permission.knowledge_datums.length
}
export function knowledge_test() {
  return store.getters.permission.knowledge_test.length
}
export function knowledge_resource() {
  return store.getters.permission.knowledge_resource.length
}
export function interaction_social() {
  return store.getters.permission.interaction_social.length
}
export function interaction_activities() {
  return store.getters.permission.interaction_activities.length
}
export function interaction_comment() {
  return store.getters.permission.interaction_comment.length
}
export function mall_mallInfo() {
  return store.getters.permission.mall_mallInfo.length
}
export function mall_productList() {
  return store.getters.permission.mall_productList.length
}
export function mall_orderList() {
  return store.getters.permission.mall_orderList.length
}
export function mall_mallSetting() {
  return store.getters.permission.mall_mallSetting.length
}
export function marketing_partner() {
  return store.getters.permission.marketing_partner.length
}
export function marketing_point() {
  return store.getters.permission.marketing_point.length
}
export function order_index() {
  return store.getters.permission.order_index.length
}
export function financed_cashManage() {
  return store.getters.permission.financed_cashManage.length
}
export function financed_companyIncome() {
  return store.getters.permission.financed_companyIncome.length
}
export function financed_userIncome() {
  return store.getters.permission.financed_userIncome.length
}
export function financed_business() {
  return store.getters.permission.financed_business.length
}
export function wxapp_index() {
  return store.getters.permission.wxapp_index.length
}
export function marketing_member_members() {
  return store.getters.permission.marketing_member_members.length
}
export function marketing_member_vipBenefit() {
  return store.getters.permission.marketing_member_vipBenefit.length
}
export function isStaff() {
  return store.getters.staff
}
